

//
//  MainViewController.m
//  OC注入JS
//
//  Created by YYY on 2018/1/4.
//  Copyright © 2018年 YYY. All rights reserved.
//

#import "MainViewController.h"

#import "ViewController.h"
#import "MyWebViewController.h"
#import "BaiduViewController.h"
#import "WkWebViewController.h"
#import "TempViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    ViewController *vc = [ViewController new];
    vc.title = @"交互";
    
    MyWebViewController *webVC = [MyWebViewController new];
    webVC.title = @"寄语";
    
    BaiduViewController *baiduVC = [BaiduViewController new];
    baiduVC.title = @"百度";
    
    WkWebViewController *wkwebviewVC = [WkWebViewController new];
    wkwebviewVC.title = @"WkWebView";
    
    TempViewController *tempVC = [TempViewController new];
    tempVC.title = @"temp";
    
    NSArray *controllers = @[vc,webVC,baiduVC,wkwebviewVC,tempVC];
    NSMutableArray *tempArray = [NSMutableArray array];
    for (int i=0; i<controllers.count; i++)
    {
        UINavigationController *navVC = [[UINavigationController alloc]initWithRootViewController:controllers[i]];
        [tempArray addObject:navVC];
    }
    [self setViewControllers:tempArray animated:YES];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
